#ifndef PACKETMANAGER_H
#define PACKETMANAGER_H

#define ID_PACKET 0b01101010
#include <vector>
#include <string>
#include <QVector>
#include <QString>

class PacketManager
{
    public:
        PacketManager();
        virtual ~PacketManager();

        static std::string int_to_bits(unsigned long n, int bitswanted);
        static unsigned long bits_to_long(std::string bits);

        static std::vector<unsigned long> encode(std::vector<std::string> data, int type);
        static bool decode(std::vector<unsigned long> msg, int type, QVector<QString> *vecString);

    protected:
    private:
};

#endif // PACKETMANAGER_H
